﻿using UnityEngine;
using winS.Unity.Process;
using winS.UnityEditor.UIElement;

namespace winS.UnityEditor.ProcessEditor
{
    /// <summary>
    /// 表示<see cref="Process"/> 中的起始节点
    /// </summary>
    [Title("开始", "Start")]
    public class StartStepNode<T> : OutputOnlyStepNode<T> where T : StartStep
    {
        public override float width => 100f;
        public override bool muteable => false;
        public override bool copyable => false;
        public override bool deletable => false;

        internal override void Initialize()
        {
            base.Initialize();
            head.style.SetBackgroundColor(0, 195, 0);
            titleLabel.style.color = subtitleLabel.style.color = Color.black;
            titleline.style.SetBackgroundColor(Color.white);
        }
    }
}